import java.util.HashMap;
import java.util.Map;

/**
 * Created by asd73 on 2017/8/25.
 */
public class MapTest {
    public static void main(String[] args) {

        Map<Integer,String> map = new HashMap<>();
        map.put(1,"data1");
        map.put(2,"data2");
        map.put(2,"abc");
        String s = map.get(1);
        /*Set<Map.Entry<Integer,String >> maps = map.entrySet();
        Iterator<Map.Entry<Integer,String >> iterator = maps.iterator();
        while (iterator.hasNext()){
            Map.Entry<Integer,String> map1 = iterator.next();
            System.out.println(map1.getKey()+":"+map1.getValue());
        }*/
    }
}
